package com.party.core.service.activity.biz;

import com.party.core.model.activity.ActivityInfo;
import com.party.core.service.activity.IActivityInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 活动附属信息处理
 *
 * @author yifeng
 * @date 2018/10/23 0023
 * @time 下午 14:32
 */
@Service
public class ActivityInfoBizService {
    @Autowired
    private IActivityInfoService activityInfoService;

    public void saveBiz(String activityId) {
        ActivityInfo activityInfo = activityInfoService.findByActivityId(activityId);
        if (null == activityInfo) {
            activityInfo = new ActivityInfo();
            activityInfo.setActivityId(activityId);
            activityInfo.setIsDistribution(0);
            activityInfoService.insert(activityInfo);
        }
    }
}
